<?php
/**
 * 医院病床号 模型
 * @authors xiadx (xiadx@zpdchina.com)
 * @date    2017-03-06 11:04:52
 * @version $Id$
 */

class YiyuanBingchuangModel extends BaseModel {

    /**
     * 返回给终端的可执行sql语句的字段名称数组
     * @var [type]
     */
    public $_field_arr = ['id','bingchuang_hao','zhuyuan_bingqu','bingchuang_fenzu'];

    public function ls($user_department='')
    {
    	$field_str = "id,bingchuang_hao,zhuyuan_bingqu,bingchuang_fenzu";
    	$query = DB::select($field_str)
    					->from('yiyuan_bingchuang')
                        ->where('yiyuan_id', '=', $this->yiyuan_id)
                        ->execute()
                        ->as_array();
        return $query;
    }
}
